Skip to content

Let FMUs of Buildings find the Spawn executable - #396

Merged
sjoelund merged 1 commit into
masterfrom
buildings-spawnpath
Nov 5, 2026
Merged

sjoelund merged 1 commit into
masterfrom
buildings-spawnpath

Conversation

@sjoelund

@sjoelund sjoelund commented Nov 5, 2026

Copy link
Copy Markdown
Member

A Buildings model with EnergyPlus looks for the Spawn executable next to modelica://Buildings/legal.html, then on SPAWNPATH and on PATH. In an FMU, legal.html is a copy in the FMU resources, and Spawn (110 MB) is not there. So all EnergyPlus models failed to initialize in the FMI jobs (about 130 rows in master-fmi-cs-cvode, and the same in wasm-jit-cs), with "Failed to find spawn executable".

Set SPAWNPATH to the Spawn that install.py puts into the library, for Buildings 12, 13 and latest.

The wasm-jit jobs simulate inside omc, which did not get environmentSimulation. Set it in omc with setEnvironmentVar.

Assisted-by: Claude Opus 5.5

A Buildings model with EnergyPlus looks for the Spawn executable next
to modelica://Buildings/legal.html, then on SPAWNPATH and on PATH. In
an FMU, legal.html is a copy in the FMU resources, and Spawn (110 MB)
is not there. So all EnergyPlus models failed to initialize in the
FMI jobs (about 130 rows in master-fmi-cs-cvode, and the same in
wasm-jit-cs), with "Failed to find spawn executable".

Set SPAWNPATH to the Spawn that install.py puts into the library, for
Buildings 12, 13 and latest.

The wasm-jit jobs simulate inside omc, which did not get
environmentSimulation. Set it in omc with setEnvironmentVar.

Assisted-by: Claude Opus 5.5
@sjoelund
sjoelund merged commit e34fffa into master Nov 5, 2026
7 checks passed
@sjoelund
sjoelund deleted the buildings-spawnpath branch November 5, 2026 20:03
sjoelund added a commit that referenced this pull request Nov 6, 2026
#396 set SPAWNPATH to Spawn-light-0.6.0-9f1b36b00b for Buildings 12, 13
and master. Buildings master now uses spawn-0.6.0-638b8408fd, and
install.py puts it in another directory. So the 52 EnergyPlus models of
Buildings_latest still failed in the FMI jobs with "Failed to find spawn
executable in Buildings Library installation, on SPAWNPATH and on PATH".

Let a value of environmentSimulation have a wildcard. It becomes all
the directories it matches, separated by the path separator. Buildings
searches SPAWNPATH like PATH, so it finds the Spawn that its version
asks for.

Assisted-by: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant